﻿@model S4Store.Domain.AfterSaleKpi.SparePartsMonthInput
@{
    ViewBag.Title = "MonthConfig";
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
<form class="pageForm addpage" action="@Url.Action("SaveAddOrUpdateSparePartMonthInput")" method="post">
<style>
    .mytable td{ text-align:left;}
</style>
<div style="height: 100%; width: 100%; overflow: hidden" class="verticalSplitContainer">
    <div class="pageFormContent" style="overflow: auto;" ratio="*">

        <div style=" padding:10px; font-size:14px">月初目标</div>
    <table class="reporttable mytable" style=" width:100%;border-collapse: collapse;" >
		<tr>
                <td style=" background:#92D050">平均在库天数:</td><td><input type="text" class="textInput numberinput" size="5" name="config.PJZKTSMB" value="@Model.PJZKTSMB" />天</td>
                <td style=" background:#92D050">备件周转率</td><td><input type="text" class="textInput numberinput" size="5" name="config.BJZZLMB" value="@Model.BJZZLMB" />次/年</td>
                <td style=" background:#92D050">备件保修合格率</td><td><input type="text" class="textInput numberinput" size="5" name="config.BJBXHGLMB" value="@Model.BJBXHGLMB" />%</td>

                <td style=" background:#92D050">正常订货率</td><td><input type="text" class="textInput numberinput" size="5" name="config.ZCDHLMB" value="@Model.ZCDHLMB" />%</td>

                <td style=" background:#92D050">备件满足率</td><td><input type="text" class="textInput numberinput" size="5" name="config.BJMZLMB" value="@Model.BJMZLMB" />%</td>

            </tr>
            <tr>
                <td style=" background:#92D050">呆滞库存变化率:</td><td><input type="text" class="textInput numberinput" size="5" name="config.DZKCBHLMB" value="@Model.DZKCBHLMB" />%</td>
                <td style=" background:#92D050;text-align:left;">死库存变化率:</td><td><input type="text" class="textInput numberinput" size="5" name="config.SKCBHLMB" value="@Model.SKCBHLMB" />%</td>
                <td style=" background:#92D050">库存成本总量:</td><td><input type="text" class="textInput numberinput" size="5" name="config.KCCBZL" value="@Model.KCCBZL" />万</td>
                <td style=" background:#92D050">月初库存成本</td><td><input type="text" class="textInput numberinput" size="5" name="config.YCKCCB" value="@Model.YCKCCB" />万</td>
                <td style=" background:#92D050"></td><td></td>
            </tr>
    </table>


<div style=" padding:10px; font-size:14px">月末实际</div>


        <table class="reporttable" style=" width:100%;border-collapse: collapse;">
            <tr>
                
                <td style=" background:#92D050">月末库存成本</td><td><input type="text" class="textInput numberinput" size="5" name="config.YMKCCB" value="@Model.YMKCCB" />万</td>

                <td style=" background:#92D050">日均备件销售成本</td><td><input type="text" class="textInput numberinput" size="5" name="config.RJBJXSCB" value="@Model.RJBJXSCB" />万</td>

                <td style=" background:#92D050">月备件销售成本</td><td><input type="text" class="textInput numberinput" size="5" name="config.YBJXSCB" value="@Model.YBJXSCB" />万</td>
                <td style=" background:#92D050">月计划订货成本:</td><td><input type="text" class="textInput numberinput" size="5" name="config.YJHDHCB" value="@Model.YJHDHCB" />万</td>
                <td style=" background:#92D050">月全部订货成本</td><td><input type="text" class="textInput numberinput" size="5" name="config.YQBDHCB" value="@Model.YQBDHCB" />万</td>

            </tr>
            <tr>
                
                <td style=" background:#92D050">月备件收入</td><td><input type="text" class="textInput numberinput" size="5" name="config.YBJSR" value="@Model.YBJSR" />万</td>

                <td style=" background:#92D050">月均保修备件收入</td><td><input type="text" class="textInput numberinput" size="5" name="config.YJBXBJSR" value="@Model.YJBXBJSR" />万</td>

                <td style=" background:#92D050">呆滞库存备件成本</td><td><input type="text" class="textInput numberinput" size="5" name="config.DZKCBJCB" value="@Model.DZKCBJCB" />万</td>
                <td style=" background:#92D050">死库存备件成本:</td><td><input type="text" class="textInput numberinput" size="5" name="config.SKCBJCB" value="@Model.SKCBJCB" />万</td>
                <td style=" background:#92D050">申请保修总件数</td><td><input type="text" class="textInput numberinput" size="5" name="config.SQBXZJS" value="@Model.SQBXZJS" />件</td>
            </tr>
            <tr>
                
                <td style=" background:#92D050">保修合格件数</td><td><input type="text" class="textInput numberinput" size="5" name="config.BXHGJS" value="@Model.BXHGJS" />件</td>

                <td style=" background:#92D050">缺件未维修台次</td><td><input type="text" class="textInput numberinput" size="5" name="config.QJWWXTC" value="@Model.QJWWXTC" />台</td>

                <td style=" background:#92D050">月维修总台次</td><td><input type="text" class="textInput numberinput" size="5" name="config.YWXZTC" value="@Model.YWXZTC" />台</td>
                <td style=" background:#92D050">回收零件总数:</td><td><input type="text" class="textInput numberinput" size="5" name="config.HSLJZS" value="@Model.HSLJZS" />件</td>
                <td style=" background:#92D050">发出零件总数</td><td><input type="text" class="textInput numberinput" size="5" name="config.FCLJZS" value="@Model.FCLJZS" />件</td>

            </tr>
            
        </table>
<div style=" padding:10px; font-size:14px; color:#FF605F;">月初目标填完后请不要勾选确认，保存；待月末数据录入完整后确认保存。</div>
    </div>
    <input type="hidden" name="y" value="@Model.Month.Year" /> <input type="hidden" name="m" value="@Model.Month.Month" />
        <div class="formBar" ratio="#30">
    @if (!Model.IsConfirmed || CurrentUser.Position == S4Store.Domain.Position.SystemManager)
    {
        <ul>
            <li>
                <div class="simplebutton">
                    <div class="r">
                        <button type="button" class="submit">
                            保存</button></div>
                </div>
            </li>
            <li>确认数据：<input type="checkbox" name="isconfirm" value="true" /></li>
        </ul>
    }
    </div>
</div>
</form>